package com.llly.service;

import com.github.pagehelper.Page;
import com.llly.pojo.Easybuy_news;

import java.util.List;

//资讯中心——业务逻辑层
public interface NewsService {

    //查询所有内带分页
    public Page<Easybuy_news> showNews(Integer pageIndex);

    //增
    public int addNews(Easybuy_news en);

    //删
    public int delNews(int id);

    //改
    public int updateNew(Easybuy_news en);

    //根据指定id修改1
    public Easybuy_news findByid(int id);

    //在index页面显示1
    public List<Easybuy_news> IndexShowAll();

    //进入详情页面
    public Easybuy_news newsView(Integer id);
}
